#ifndef GLBITMAP_H_
#define GLBITMAP_H_



typedef unsigned char BYTE;

#include<stdio.h>
#include<stdlib.h>
#include<string>

using namespace std;

class GLBitmap 
{
public:
	GLBitmap( string filename);

	int getWidth(){return _width;};
	int getHeight(){return _height;};
	BYTE *getRGBBytes(){return _data;};
private:	
	int _width;
	int _height;
	string _filename;
	BYTE* _data;
	
	BYTE& pixel(int x,int y,int c);
};

#endif /*GLBITMAP_H_*/
